import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue';
import City from '../views/City.vue';
import Policy from '../views/Policy.vue';
import School from '../views/School.vue';
import Schoolmore from '../views/Schoolmore.vue';
import Login from '../views/Login.vue';
import Reg from '../views/Reg.vue'
import Forget from '../views/Forget.vue'
import Message from '../views/Message.vue'
import Details from '../views/Details.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/city',
    name: 'City',
    component: City
  },
  {
    path: '/policy',
    name: 'Policy',
    component: Policy
  },
  {
    path: '/school',
    name: 'School',
    component: School
  },
  {
    path: '/schoolmore',
    name: 'Schoolmore',
    component: Schoolmore
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/reg',
    name: 'Reg',
    component: Reg
  },
  {
    path: '/forget',
    name: 'Forget',
    component: Forget
  },
  {
    path: '/message',
    name: 'Message',
    component: Message
  },
  {
    path: '/details',
    name: 'Details',
    component: Details
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
